package com.cms.dao;

import com.cms.entity.Freelance;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.List;

@Repository
public interface FreelanceMapper {

    List<Freelance> findAll();

    int insertFreelance (Freelance freelance);

    int updateFreelance (HashMap<String,String> updateMap);

    int deleteFreelance (String id);

    List<Freelance> findFreelanceById (String id);

    List<Freelance> findFreelanceByName (String name);

    List<Freelance> findFreelanceByTelephone (String telephone);

    List<Freelance> findFreelanceByEmail (String email);

    List<Freelance> findFreelanceByType (String type);

}
